<?php

require_once "core/db.php";

class Msecret1 extends DB {
    
    private $_query = NULL;
    
    protected function setSecret($name, $secret) {
        /**
         *  установка нового секретного слова в БД
         * @param string $name
         * @param string $secret
         */
        DB::getInstance()->openConnectionToLS();
        $this->_query = "UPDATE `account_data` SET `secret` = '$secret' WHERE `name` = '$name'";
        return DB::getInstance()->sql($this->_query);
        
    }
}
?>
